<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:x="http://xseam.dev.java.net/seam"
    template="/layout/template.xhtml">

<ui:define name="body">

	<h2>Incluir avaliador</h2>
	<hr style="color: #666666;width: 700px;float: left;"/>
	<br />
	
    <x:form id="incluirForm" showMessages="true" >
    
		<s:div>
			<x:inputText id="nome" 
				label="Nome: " value="#{usuario.nomeAvaliador}" size="50" maxlength="50" required="true" />
			<br />
			
			<x:inputText id="nomeUsuario" 
				maxlength="14" value="#{usuario.nomeUsuario}" label="Nome de usuário: " size="20" required="true"/>
			<br class="clear" />
			
			<x:inputSecret id="senha" 
				maxlength="10" value="#{usuario.senha}" size="20" label="Senha: " required="true"/>
			<br class="clear" />
			
			<x:inputSecret id="confirmarSenha" 
				maxlength="10" value="#{usuario.confirmaSenha}" size="20" label="Confirmar senha: " required="true"/>
			<br class="clear" />
			
		</s:div>

		<s:div styleClass="actionButtons">
	        <h:commandButton id="btnVoltar" 
	        	value="Cancelar" action="RESULT_BACK" immediate="true" title="Pressione aqui para cancelar."/>
	        
	        <h:commandButton id="btnSalvar" 
	        	value="Salvar" action="#{usuarioAction.salvarAvaliador()}" title="Pressione aqui para realizar o cadastro."
				onclick="return confirmarOperacao();"/>
		</s:div>

    </x:form>

 </ui:define>
</ui:composition>
